package santeclair.referentiel.optique.tarification.bean.detailTarif;

import java.math.BigDecimal;

import santeclair.lunar.framework.annotation.ToString;
import santeclair.lunar.framework.util.ToStringUtils;

public class Tarif {

    @ToString
    private final StatutTarif statutTarif;
    @ToString
    private final String code;
    @ToString
    private final BigDecimal tarif;
    @ToString
    private final String message;

    Tarif(final StatutTarif statutTarif, final String code, final BigDecimal tarif, final String message) {
        super();
        this.statutTarif = statutTarif;
        this.code = code;
        this.tarif = tarif;
        this.message = message;
    }

    /**
     * @return the statutTarif
     */
    public StatutTarif getStatutTarif() {
        return statutTarif;
    }

    /**
     * @return the code
     */
    public String getCode() {
        return code;
    }

    /**
     * @return the tarif
     */
    public BigDecimal getTarif() {
        return tarif;
    }

    /**
     * @return the message
     */
    public String getMessage() {
        return message;
    }

    @Override
    public String toString() {
        return ToStringUtils.toString(this);
    }

}
